package com.android.locationapi.maps;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class notauthenticated extends Activity implements OnClickListener{

	  /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
    	setRequestedOrientation(1);
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.notauthenticated);
        
        
        
        
       
        
        
        Button tryagainbtn = (Button)findViewById(R.id.trybtn);
        tryagainbtn.setOnClickListener(this);
        
        
          
    }
    
    public void onClick(View v) {
    	
        
    	Intent explicitIntent = new Intent(notauthenticated.this,creden.class);
		startActivity(explicitIntent);
		
	
	}
	
	public boolean onKeyDown(int keyCode, KeyEvent event) 
	{ 
	if(keyCode==KeyEvent.KEYCODE_BACK) 
	{ 

	this.finish(); 
	return super.onKeyDown(keyCode, event); 

	} 
	return false; 
	}
	
	
	

	@Override
    public void onPause()
    {
    finish();
    super.onPause();
    }
    @Override
    public void onStop()
    {
    finish();
    super.onStop();
    }
    
}
